//
// Created by zing on 3/30/2020.
//

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

int main(){
    __pid_t pid = getpid();
    if (pid == -1){
        perror("getpid");
        return EXIT_FAILURE;
    }
    printf("pid is %d\n", pid);
    printf("ppid is %d\n", getppid());
    return EXIT_FAILURE;
}